package com.se.action;

import java.util.ArrayList;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.se.config.Preferences;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.se.common.StringUtils;
import com.se.model.CommonSessionUser;
import com.se.utils.StringUtil;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class MainAction {
	private String REQUEST_RESULT = "ok";

	public String execute() throws Exception {
		try{
			HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get( ServletActionContext.HTTP_REQUEST);
	    	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
	    	Preferences config = (Preferences) ctx.getBean("config");
			CommonSessionUser user = (CommonSessionUser) request.getSession().getAttribute(CommonSessionUser.ATTRIBUTE_NAME);
	        try{
	        	;
	        	
	        }catch (Exception e) {
	            e.printStackTrace();
	        }
		}  catch (Exception ex) {
        	REQUEST_RESULT = "FAILED";
            ex.printStackTrace();
        }
		return REQUEST_RESULT;
	}


}
